package cn.wolfcode.web.shiro;

import freemarker.template.Configuration;
import freemarker.template.TemplateException;

import java.io.IOException;

public class MyFreeMarkerConfig {
    public class MyFreeMarkerConfig extends FreeMarkerConfigurer {
        @Override
        public void afterPropertiesSet() throws IOException, TemplateException {
            //继承之前的属性配置，这不不能省
            super.afterPropertiesSet();
            Configuration cfg = this.getConfiguration();
            cfg.setSharedVariable("shiro", new ShiroTags());//shiro 标签  }
        }
    }